var limsSpecJudgeType = Gikam.getPageObject({

    getEditListColumns : function() {
        return [ {
            checkbox : true
        },{
            index : true
        }, {
            field : 'judgeName',
            title : 'T_LIMS_SPEC_JUDGE_TYPE.JUDGENAME',
            editor : true,
            validators : [ 'notEmpty','strLength[0,100]'],
            width :250,
        }, {
            field : 'color',
            title : 'T_LIMS_SPEC_JUDGE_TYPE.COLOR',
            editor : true,
            type : 'select',
            search : true,
            firstBlank : false,
            category : 'sys',
            param : {
                codeCategoryId_EQ : 'color'
            },
            styleFormatter : function(row) {
                return {backgroundColor : row.color}
            },
            width :250,
            validators : [ 'notEmpty'],
        }, {
            field : 'activedFlag',
            title : 'T_LIMS_SPEC_JUDGE_TYPE.ACTIVEDFLAG',
            editor : true,
            type : 'simpleCheckbox',
            width :250,
        }, {
            field : 'pendingFlag',
            title : 'T_LIMS_SPEC_JUDGE_TYPE.PENDINGFLAG',
            editor : true,
            type : 'simpleCheckbox',
            width :250,
        } ];
    },

    getBaseInfoFormFields : function() {
        return [ {
            field : 'judgeName',
            title : 'T_LIMS_SPEC_JUDGE_TYPE.JUDGENAME',
            validators : [ 'notEmpty','strLength[0,100]'],
            preInsert : true
        }, {
            field : 'color',
            title : 'T_LIMS_SPEC_JUDGE_TYPE.COLOR',
            preInsert : true,
            type : 'select',
            search : true,
            firstBlank : false,
            category : 'sys',
            param : {
                codeCategoryId_EQ : 'color'
            },
            styleFormatter : function(row) {
                return {backgroundColor : row.color}
            },
            validators : [ 'notEmpty']
        }];
    },

    baseUrl : IFM_CONTEXT + '/secure/basemodule/basedata/spec-judge-types'
});
